<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<h:head>
	<title><ui:insert name="title">Default title</ui:insert></title>
</h:head>

<h:body>

	<div id="header">
		<ui:insert name="header">
    	Header area.  See comments below this line in the source.
    	<!--  include your header file or uncomment the include below and create header.xhtml in this directory -->
			<!-- <ui:include src="header.xhtml"/> -->
		</ui:insert>
	</div>


	<div id="content">
		<ui:insert name="content">
			<h1>JSF 2 internationalization example</h1>

			<h:form>
				<h3>
					<h:outputText value="#{msg['userName']}" />
					<h:commandButton value="Demo" action="#" />
					<h:inputText value="20" />
				</h3>

				<h:panelGrid columns="2">
 
					Language : 
					<h:selectOneMenu value="#{language.localeCode}" onchange="submit()"
									valueChangeListener="#{language.countryLocaleCodeChanged}">
                                            <f:selectItems value="#{language.countriesInMap}" />
					</h:selectOneMenu>
                                        <h:outputLabel value="#{authentication.text}" />
				</h:panelGrid>

			</h:form>
		</ui:insert>
	</div>

	<div id="footer">
		<ui:insert name="footer">
    	Footer area.  See comments below this line in the source.
    	<!--  include your header file or uncomment the include below and create footer.xhtml in this directory -->
			<!--<ui:include src="footer.xhtml"/>  -->
		</ui:insert>
	</div>

</h:body>

</html>
